<?php
/**
 *	[TWCMS] (C)2012 TongWang Inc.
 *	$Id: content_links.tpl.php 2 2013-04-27 07:14:17Z nanown@qq.com $
 */
	defined('IN_TWCMS') || exit('Access Denied');
	include load_tpl('head');
?>
	<style type="text/css">
	#allL td{height:30px}
	#allL tbody .inp{border-color:#fff}
	#allL tbody .inp.on{border-color:#ccc}
	#allL tbody .linkse{display:inline;padding:6px}
	</style>

	<div class="head">
		<dl>
			<input id="addLinks" type="button" value="增加" class="but1" />
			<dd class="on"><?=$this->title?></dd>
			<dd istype="1">链接分类</dd>
		</dl>
	</div>

	<div class="p c2">
		<div class="cc">
			<table id="allL" class="tb2">
				<thead>
					<tr class="tit">
						<th><input type="checkbox" name="chkall"></th>
						<th>显示顺序</th>
						<th>网站名称</th>
						<th>网站 URL</th>
						<th>logo 地址(可选)</th>
						<th>文字说明(可选)</th>
						<th width="80">链接状态</th>
						<th width="130">链接分类</th>
						<th width="160">操作</th>
					</tr>
					<tr class="li un">
						<td> </td>
						<td><input type="text" class="inp" name="orderby" size="3"></td>
						<td><input type="text" class="inp" name="name" size="15"></td>
						<td><input type="text" class="inp" name="url" size="20"></td>
						<td><input type="text" class="inp" name="logo" size="20"></td>
						<td><input type="text" class="inp" name="note" size="30"></td>
						<td>
							<select name="status">
								<option value="0">首页</option>
								<option value="1">内页</option>
								<option value="2">禁用</option>
							</select>
						</td>
						<td>
							<select class="cfgType" name="type">
								<?php $this->ajax_get_links_type_select(); ?>
							</select>
						</td>
						<td>
							<input type="button" value="" class="btn_ok" /><input type="button" value="" class="btn_cl" />
						</td>
					</tr>
				</thead>

				<tbody>
					<?php
					if(empty($this->count)) {
						echo '<tr id="isEempty" class="li"><td colspan="9">';
						skyTips('暂无友情链接');
						echo '</td></tr>';
					}else $this->get_links(); ?>
				</tbody>
			</table>
		</div>
		<div class="cc un">
			<table id="allLT" class="tb2">
				<thead>
					<tr class="tit">
						<th width="50">编号</th>
						<th>链接分类</th>
					</tr>
				</thead>
				<tbody><?php $this->ajax_get_links_type(); ?></tbody>
			</table>
			<div class="tb_b"><input id="linkType" type="button" value="确定" class="but1" /></div>
		</div>
	</div>
</div>
<script src="<?=TWCMS_ADMSTATIC?>js/links.js" type="text/javascript"></script>
</body>
</html>